angular.module('faApp')
  .service('outProductService', [ 'ajaxService',function (ajaxService) {

    this.outProductList = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("OUT_PRODUCT_LIST"),cfg || {});
    };  
    this.editOutProduct = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("EDIT_OUT_PRODUCT"),cfg || {});
    };
     this.sendoutProductEmail = function (pids) {
      return ajaxService.post(ajaxService.getApiUri("SEND_OUT_PRODUCT_EMAIL"),{"pids" : pids});
    };
    this.outProductDetail = function (id) {
      return ajaxService.post(ajaxService.getApiUri("OUT_PRODUCT_DETAIL"),{"id" : id});
    };

    this.productRegexList = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("PRODUCT_REGEX_LIST"),cfg || {});
    };  
     this.editProductRegex = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("EDIT_PRODUCT_REGEX"),cfg || {});
    };

}]);
 



